package css.core;

public class Order {

	private int orderID;
	private int foodDone;
	private int drinkDone;
	
	/**
	 * Constructor for an Order class
	 * @param customerID  The customerID of the customer that holds the order
	 * @param customerType  Shows the item purchased by the customer
	 */
	public Order(int customerID, int customerType){
		this.setOrderID(customerID);
		if(customerType == 0){
			this.foodDone = 2;
			this.drinkDone = 2;
		}
		else if(customerType == 1){
			this.foodDone = 0;
			this.drinkDone = 2;
		}
		else if(customerType == 2){
			this.foodDone = 2;
			this.drinkDone = 0;
		}
		else if(customerType == 3){
			this.foodDone = 0;
			this.drinkDone = 0;
		}
	}
	
	public boolean isDone(){
		return (foodDone==2 && drinkDone==2);
	}
	

	/**
	 * @return the orderID
	 */
	public int getOrderID() {
		return orderID;
	}

	/**
	 * @param orderID the orderID to set
	 */
	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}
	
	public boolean isFoodDone() {
		return foodDone==2;
	}

	public void setFoodDone(int foodDone) {
		this.foodDone = foodDone;
	}

	public boolean isDrinkDone() {
		return drinkDone==2;
	}

	public void setDrinkDone(int drinkDone) {
		this.drinkDone = drinkDone;
	}

}
